<template>
	<view style="display: flex;flex-direction: column;align-items: center;gap: 5px;padding: 5px;border-radius: 10px;"
		@click="EventChange(data.id)">
		<tn-icon :name="sConf.pics + data.icon" size="160" style="background-color: #00000011;padding: 5px;border-radius: 5px;"></tn-icon>
		<view class="">{{data.name}}</view>
	</view>
</template>

<script>
	export default {
		name: "sub-local-card",
		data() {
			return {
				sConf: getApp().globalData,
			};
		},
		mounted() {

		},
		props: {
			data: {
				type: Object,
				default: null
			}
		},
		methods: {
			EventChange(e) {
				this.$emit('EventChange', e)
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>